package com.choupin.choupin.entity;

import java.time.LocalDateTime;
import java.util.Objects;

public class ShowHotPrize {
   private String avatar;//头像
    private String phone;//手机号
    private LocalDateTime prizeTime;//中奖时间
    private  String name;// 奖品名称

    public ShowHotPrize() {
    }

    public ShowHotPrize(String avatar, String phone, LocalDateTime prizeTime, String name) {
        this.avatar = avatar;
        this.phone = phone;
        this.prizeTime = prizeTime;
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public LocalDateTime getPrizeTime() {
        return prizeTime;
    }

    public void setPrizeTime(LocalDateTime prizeTime) {
        this.prizeTime = prizeTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ShowHotPrize that = (ShowHotPrize) o;
        return Objects.equals(avatar, that.avatar) &&
                Objects.equals(phone, that.phone) &&
                Objects.equals(prizeTime, that.prizeTime) &&
                Objects.equals(name, that.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(avatar, phone, prizeTime, name);
    }

    @Override
    public String toString() {
        return "ShowHotPrize{" +
                "avatar='" + avatar + '\'' +
                ", phone='" + phone + '\'' +
                ", prizeTime=" + prizeTime +
                ", name='" + name + '\'' +
                '}';
    }
}
